﻿using System;
using System.Collections.Generic;
using System.Windows.Forms;

namespace WordsReminder
{
    static class Program
    {
        [STAThread]
        static void Main(string[] args)
        {
            Application.ThreadException += new System.Threading.ThreadExceptionEventHandler(Application_ThreadException);
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            Application.Run(new MainForm2());
        }

        static void Application_ThreadException(object sender, System.Threading.ThreadExceptionEventArgs e)
        {
            MessageBox.Show("Error occured:\n"+e.Exception.Message, "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
        }

    }
}
